package com.itheima.health.dao;

import com.itheima.health.pojo.User;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {

    /**
     * @Author: guodong
     * @Date: 11:49 2021/2/23
     * @Parms [username]
     * @ReturnType: com.itheima.health.pojo.User
     * @Description: 根据用户名查询用户
     */
    User findUserByName(@Param("username") String username);

    int add(User user);
}
